import Vue from 'vue'
import Router from 'vue-router'
import index from '../pages/index.vue'
import personCenter from '../pages/personCenter.vue'
import twoPerson from '../pages/twoPerson.vue'
import manage from '../pages/manage.vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import cart from '../pages/cart.vue'
import highSchool from '../pages/highSchool.vue'
import category from '../pages/category.vue'
import home from '../pages/home.vue'
import fillOrder from '../pages/fillOrder.vue'
import myOrder from '../pages/myOrder.vue'
import myFavorate from '../pages/myFavorate.vue'
import two from '../pages/two.vue'
import Feedback from '../pages/feedback.vue'
import GoodsDetail from '../pages/goodsDetail.vue'
import classify from '../pages/classify.vue'
import SecGoodsDetail from '../pages/secGoodsDetail.vue'
import AddressManage from '../pages/addressManage.vue'
import EditAddress from '../pages/editAddress.vue'
import PaySuccess from '../pages/paySuccess.vue'
import Message from '../pages/message.vue'
import LookMessage from '../pages/lookMessage.vue'
import MyFans from '../pages/myFans.vue'
import FansList from '../pages/fansList.vue'
import AttentionList from '../pages/attentionList.vue'
import PraiseList from '../pages/praiseList.vue'
import NewsList from '../pages/newsList.vue'
import NewsDetail from '../pages/newsDetail.vue'
import PublishGoods from '../pages/publishGoods.vue'
import SecondClassify from '../pages/secondClassify.vue'
import Login from '../pages/login.vue'
import Register from '../pages/register.vue'
import EditPersInfo from '../pages/editPersInfo.vue'
import VipCenter from '../pages/vipCenter.vue'
import ShopApply from '../pages/shopApply.vue'
import UploadCard from '../pages/uploadCard.vue'
import GoodsList from '../pages/goodsList.vue'
import SecFillOrder from '../pages/secFillOrder.vue'
import Coupon from '../pages/coupon.vue'  //优惠卷
import Chat from '../pages/chat.vue'  //聊天
import OrderDetail from '../pages/orderDetail.vue'  //优惠卷
import Evalute from '../pages/evaluate.vue'  //
import LeaveWord from '../pages/leaveWord.vue'  //留言列表
import About from '../pages/about.vue'
Vue.use(Router)
Vue.use(VueAwesomeSwiper)

export default new Router({
    linkActiveClass: 'active',
    routes: [{
            path: '/',
            name: 'index', //学校自营店铺
            meta: {
                title: '自营店铺'
            },
            component: index,
            // redirect: '/home'   //Evalute
        },
        {
            path: '/Evalute', //评价
            name: 'Evalute',
            meta: {
                title: '评价'
            },
            component: Evalute,
        },   //Feedback
        {
            path: '/about', //评价
            name: 'About',
            meta: {
                title: '关于21克'
            },
            component:About,
        },   //Feedback
        {
            path: '/LeaveWord', //评价
            name: 'LeaveWord',
            meta: {
                title: '留言'
            },
            component: LeaveWord,
        },  
        {
            path: '/Feedback', //个人中心
            name: 'Feedback',
            meta: {
                title: '意见反馈'
            },
            component: Feedback
        },
        {
            path: '/personCenter', //个人中心
            name: 'personCenter',
            meta: {
                title: '个人中心'
            },
            component: personCenter
        },
        {
            path: '/Coupon', //优惠卷
            name: 'Coupon',
            meta: {
                title: '优惠卷'
            },
            component: Coupon
        },//OrderDetail
        {
            path: '/OrderDetail', //优惠卷
            name: 'OrderDetail',
            meta: {
                title: '订单详情页'
            },
            component: OrderDetail
        },
        {
            path: '/twoPerson', //二手个人中心
            name: 'twoPerson',
            meta: {
                title: '二手个人中心'
            },
            component: twoPerson
        },
        {
            path: '/manage', //商品管理
            name: 'manage',
            meta: {
                title: '商品管理'
            },
            component: manage
        },
        {
            path: '/cart', // 购物车
            name: 'cart',
            meta: {
                title: '购物车'
            },
            component: cart
        },
        {
            path: '/highSchool', // 高校留念
            name: 'highSchool',
            meta: {
                title: '高校留恋'
            },
            component: highSchool
        },
        {
            path: '/category', // 二手商品列表
            name: 'category',
            meta: {
                title: '商品列表'
            },
            component: category
        },
        {
            path: '/secGoodsDetail', // 二手商品详情
            name: 'secGoodsDetail',
            meta: {
                title: '二手商品详情'
            },
            component: SecGoodsDetail
        },
        {
            path: '/fill-order', //填写订单,提交订单
            name: "fill-order",
            meta: {
                title: '填写订单'
            },
            component: fillOrder
        },
        {
            path: '/secFillOrder', //二手的填写订单,提交订单
            name: "secFillOrder",
            meta: {
                title: '填写订单'
            },
            component: SecFillOrder
        },
        {
            path: '/my-order', //我的订单
            name: 'my-order',
            meta: {
                title: '我的订单'
            },
            component: myOrder
        },
        {
            path: '/my-favorate', //我的收藏 （包含商品、店铺、文章）
            name: 'my-favorate',
            meta: {
                title: '我的收藏'
            },
            component: myFavorate
        },
        {
            path: '/two', //跳蚤街
            name: 'Secondhand',
            meta: {
                title: '跳蚤街'
            },
            component: two,
        },
        {
            path: '/home', // 主页
            name: 'home',
            meta: {
                title: '21克商城'
            },
            component: home
        }, {
            path: '/goodsDetail', //  商城商品详情
            name: 'goodsDetail',
            meta: {
                title: '商城商品详情'
            },
            component: GoodsDetail
        },
        {
            path: '/classify', // 全部分类
            name: 'classify',
            meta: {
                title: '全部分类'
            },
            component: classify
        },
        {
            path: '/addressManage', // 地址管理
            name: 'addressManage',
            meta: {
                title: '地址管理'
            },
            component: AddressManage
        },
        {
            path: '/editAddress', // 添加地址，管理地址
            name: 'editAddress',
            meta: {
                title: '编辑地址'
            },
            component: EditAddress
        },
        {
            path: '/paySuccess', // 支付成功页面
            name: 'paySuccess',
            meta: {
                title: '支付成功'
            },
            component: PaySuccess
        },
        {
            path: '/message', // 消息页
            name: 'message',
            meta: {
                title: '消息'
            },
            component: Message
        },
        {
            path: '/lookMessage', // 查看留言
            name: 'lookMessage',
            meta: {
                title: '查看留言'
            },
            component: LookMessage
        },
        {
            path: '/myFans', // 我的粉丝,我的关注
            name: 'myFans',
            meta: {
                title: '我的粉丝'
            },
            component: MyFans
        },
        {
            path: '/fansList', // 粉丝列表
            name: 'fansList',
            meta: {
                title: '粉丝列表'
            },
            component: FansList
        },
        {
            path: '/attentionList', // 关注列表
            name: 'attentionList',
            meta: {
                title: '关注列表'
            },
            component: AttentionList
        },
        {
            path: '/praiseList', // 点赞列表
            name: 'praiseList',
            meta: {
                title: '点赞列表'
            },
            component: PraiseList
        },
        {
            path: '/newsList', // 21克资讯列表
            name: 'newsList',
            meta: {
                title: '21克资讯'
            },
            component: NewsList
        },
        {
            path: '/newsDetail', // 21克资讯详情
            name: 'newsDetail',
            meta: {
                title: '21克资讯'
            },
            component: NewsDetail
        },
        {
            path: '/publishGoods', // 发布二手商品、给二手商品标价
            name: 'publishGoods',
            meta: {
                title: '发布商品'
            },
            component: PublishGoods
        },
        {
            path: '/secondClassify', // 二手商品分类,在发布上品时选
            name: 'secondClassify',
            meta: {
                title: '二手商品分类'
            },
            component: SecondClassify
        },
        {
            path: '/login', // 登录
            name: 'login',
            meta: {
                title: '登录'
            },
            component: Login
        },
        {
            path: '/register', // 注册
            name: 'register',
            meta: {
                title: '注册'
            },
            component: Register
        },
        {
            path: '/editPersInfo', // 编辑资料
            name: 'editPersInfo',
            meta: {
                title: '编辑资料'
            },
            component: EditPersInfo
        },
        {
            path: '/vipCenter', // 会员中心
            name: 'vipCenter',
            meta: {
                title: '会员中心'
            },
            component: VipCenter
        },
        {
            path: '/shopApply', // 店铺入住
            name: 'shopApply',
            meta: {
                title: '店铺入住'
            },
            component: ShopApply
        },
        {
            path: '/uploadCard', // 上传身份证
            name: 'uploadCard',
            meta: {
                title: '身份证认证'
            },
            component: UploadCard
        },    
        {
            path: '/goodsList', // 商品列表
            name: 'goodsList',
            meta: {
                title: '商品列表'
            },
            component: GoodsList
        },
        {
            path: '/chat', // 聊天
            name: 'chat',
            meta: {
                title: '商品列表'
            },
            component: Chat
        },
    ]
})